๐ FLUX.2 [klein] โ Sub-second generation. Open weights, Apache 2.0, API from $0.014/image. Learn more โ
curl --request POST \
--url https://api.bfl.ai/v1/flux-2-max \
--header 'Content-Type: application/json' \
--header 'x-key: <api-key>' \
--data '
{
"prompt": "ein fantastisches bild",
"input_image": "<string>",
"input_image_2": "<string>",
"input_image_3": "<string>",
"input_image_4": "<string>",
"input_image_5": "<string>",
"input_image_6": "<string>",
"input_image_7": "<string>",
"input_image_8": "<string>",
"seed": 42,
"width": 0,
"height": 0,
"safety_tolerance": 2,
"output_format": "jpeg",
"webhook_url": "<string>",
"webhook_secret": "<string>"
}
'{
"id": "<string>",
"polling_url": "<string>",
"cost": 123,
"input_mp": 123,
"output_mp": 123
}Submits an image generation or editing task with FLUX.2 [MAX]. Highest quality FLUX.2 model for image generation and editing.
curl --request POST \
--url https://api.bfl.ai/v1/flux-2-max \
--header 'Content-Type: application/json' \
--header 'x-key: <api-key>' \
--data '
{
"prompt": "ein fantastisches bild",
"input_image": "<string>",
"input_image_2": "<string>",
"input_image_3": "<string>",
"input_image_4": "<string>",
"input_image_5": "<string>",
"input_image_6": "<string>",
"input_image_7": "<string>",
"input_image_8": "<string>",
"seed": 42,
"width": 0,
"height": 0,
"safety_tolerance": 2,
"output_format": "jpeg",
"webhook_url": "<string>",
"webhook_secret": "<string>"
}
'{
"id": "<string>",
"polling_url": "<string>",
"cost": 123,
"input_mp": 123,
"output_mp": 123
}Documentation Index
Fetch the complete documentation index at: https://docs.bfl.ml/llms.txt
Use this file to discover all available pages before exploring further.
Text prompt for image generation.
"ein fantastisches bild"
Path to the input image.
Path to the second input image.
Path to the third input image.
Path to the fourth input image.
Path to the fifth input image.
Path to the sixth input image.
Path to the seventh input image.
Path to the eighth input image.
Optional seed for reproducibility.
42
Width of the image
x >= 64Height of the image
x >= 64Tolerance level for input and output moderation. Between 0 and 5, 0 being most strict, 5 being least strict. If you wish to increase the safety_tolerance beyond these levels please reach out to the team.
0 <= x <= 5jpeg, png, webp URL to receive webhook notifications
1 - 2083Optional secret for webhook signature verification
Was this page helpful?